package com.yunkeji.system.domain.bo;

import com.yunkeji.common.core.validate.AddGroup;
import com.yunkeji.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import com.yunkeji.common.core.domain.BaseEntity;

/**
 * 动态_回复业务对象 ykj_moments_reply
 *
 * @author zhang
 * @date 2024-07-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MomentsReplyBo extends BaseEntity {

    /**
     * 自增主键
     */
    @NotNull(message = "自增主键不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 用户ID
     */
    @NotNull(message = "用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 动态id
     */
    @NotNull(message = "动态id不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long momentsId;

    /**
     * 回复id(直接评论这个为空)
     */
    @NotNull(message = "回复id(直接评论这个为空)不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long replyId;

    /**
     * 点赞数
     */
    @NotNull(message = "点赞数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long likeNum;

    /**
     * 回复数
     */
    @NotNull(message = "回复数不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long replyNum;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = { AddGroup.class, EditGroup.class })
    private String content;


}
